#ifndef COMMENTITEMWIDGET_H
#define COMMENTITEMWIDGET_H

#include <QWidget>
#include <QLabel>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QFont>
#include <QRandomGenerator>
#include <QStringBuilder>
#include <QPushButton>
#include "component/CommentReviewDialog.h"
#include "component/item/AvatarLabel.h"
#include "dataModel/Comment.h"

class CommentItemWidget : public QWidget
{
    Q_OBJECT
public:
    explicit CommentItemWidget(
        QWidget *parent = nullptr,
        const QString &username = "匿名用户",
        const QString &time = "1970.01.01 00:00",
        const QString &comment = QString());
    void quickSetup(const Comment &comment);

private:
    AvatarLabel *avatar;
    QLabel *usernameLabel;
    QLabel *timeLabel;
    QLabel *commentLabel;

private slots:
    void onReviewClicked();

signals:
};

#endif // COMMENTITEMWIDGET_H
